package com.jiangyg.mall.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 类描述：会员收货地址
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:00:56
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mm_member_receive_address")
public class MemberReceiveAddress implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@TableField("id")
	private Long id;

	/**
	 * member_id
	 */
	@TableField("member_id")
	private Long memberId;

	/**
	 * 收货人姓名
	 */
	@TableField("name")
	private String name;

	/**
	 * 电话
	 */
	@TableField("phone")
	private String phone;

	/**
	 * 邮政编码
	 */
	@TableField("postcode")
	private String postcode;

	/**
	 * 省份/直辖市
	 */
	@TableField("province")
	private String province;

	/**
	 * 城市
	 */
	@TableField("city")
	private String city;

	/**
	 * 区
	 */
	@TableField("region")
	private String region;

	/**
	 * 详细地址(街道)
	 */
	@TableField("detail_address")
	private String detailAddress;

	/**
	 * 省市区代码
	 */
	@TableField("areacode")
	private String areacode;

	/**
	 * 是否默认
	 */
	@TableField("is_default")
	private Integer isDefault;


}
